package com.tm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author huangp
 * @create 2023-04-06 15:52
 */
@Data
@TableName("setmeal")
public class SetmealEntity extends CreateAllEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;// bigint(20) NOT NULL COMMENT '主键',
    @TableField("category_id")
    private Long categoryId;// bigint(20) NOT NULL COMMENT '菜品分类id',
    @TableField(exist = false)
    private String categoryName;
    private String name;// varchar(64) COLLATE utf8_bin NOT NULL COMMENT '套餐名称',
    private BigDecimal price;// decimal(10,2) NOT NULL COMMENT '套餐价格',
    private Integer status;// int(11) DEFAULT NULL COMMENT '状态 0:停用 1:启用',
    private String code;// varchar(32) COLLATE utf8_bin DEFAULT NULL COMMENT '编码',
    private String description;// varchar(512) COLLATE utf8_bin DEFAULT NULL COMMENT '描述信息',
    private String image;// varchar(255) COLLATE utf8_bin DEFAULT NULL COMMENT '图片',
    @TableField("is_deleted")
    @TableLogic(delval = "1",value = "0")
    private Long isDeleted ;//int(11) NOT NULL DEFAULT '0' COMMENT '是否删除',

}
